package com.microsoft.mcp.sample.server.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

@Controller
public class HealthController {

  @GetMapping("/health")
  public ResponseEntity<Map<String, Object>> healthCheck() {
    Map<String, Object> response = new HashMap<String, Object>();
    response.put("status", "UP");
    response.put("timestamp", LocalDateTime.now().toString());
    response.put("service", "Calculator Mcp Server");
    return ResponseEntity.ok(response);
  }
}
